<template>
  <div>
    <button @click="increment">{{count}}</button>
  </div>
</template>

<script setup>
import {ref} from "vue";
// 定义变量
let count  = ref(0);
function increment(){
  count.value++;
}
</script>

<style scoped>

</style>